﻿using IM.Easy.Core.Services;
using IM.Easy.Entity.System;
using IM.Easy.Infrastructure.Query;
using IM.Easy.SystemServices.Dtos;
using IM.Easy.SystemServices.Dtos.User;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IM.Easy.SystemServices.IServices
{
    public interface IUserProfileService : IAppServices<SysUser>
    {
        /// <summary>
        /// 获取账户基本资料
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        UserProfile Get(long id);

        /// <summary>
        /// 更新密码
        /// </summary>
        /// <param name="dto">密码修改传输对象</param>
        void UpdatePassword(PasswordDto dto);

        /// <summary>
        /// 更新头像
        /// </summary>
        /// <param name="avatar"></param>
        /// <returns></returns>
        void UpdateAvatar(string avatar);

    }
}
